package com.wingstudio.springcloud.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Author ITcz
 * @Data 2020-12-09 - 12:33
 */
@Configuration
public class ApplicationContextConfig {
//    @LoadBalanced
    @Bean("restTemplate")
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }
}
